/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unesp.demac.bcc.soo.clarus.dao;

import br.unesp.demac.bcc.soo.clarus.bean.Aluno;
import br.unesp.demac.bcc.soo.clarus.bean.Emprestimo;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author esaheki
 */
public interface EmprestimoDAO {

    boolean salvarEmprestimo(Emprestimo empr) throws SQLException;
    Emprestimo getUltimoEmprestimoByIdObra(int idObra) throws SQLException;
    boolean renovarEmprestimo(Emprestimo empr) throws SQLException;
    boolean devolverEmprestimo(Emprestimo empr) throws SQLException;
    List<Emprestimo> getHistorico(Aluno aluno);
    List<Emprestimo> getEmprestimoByIdObra(int idObra);
    
}
